mui.init();
common.clsopen()

document.getElementById("quit").addEventListener("tap", function() {
	var btnArray = ['是', '否'];
	mui.confirm('您确定退出登录?', '', btnArray, function(e) {
		if(e.index == 0) {
			localStorage.removeItem("data")
			var wvs, self, launch;
			wvs = plus.webview.all();
			self = plus.webview.currentWebview();
			launch = plus.webview.getLaunchWebview();
			for(var i = 0, len = wvs.length; i < len; i++) {
				if(wvs[i].getURL() == self.getURL() || wvs[i].getURL() == launch.getURL()) {
					continue;
				}
				wvs[i].close();
			}
			plus.storage.clear();
			self.close();
			plus.webview.open('../loginregistration/login.html')
		}
	})
});